VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging Namespace / ManagedBitmap Class / ManagedBitmap Constructors / ManagedBitmap Constructor(Int32,Int32,Int32,Byte[],Resolution,PixelFormat,Palette)
Syntax Exceptions Requirements SeeAlso
In This Topic
    ManagedBitmap Constructor(Int32,Int32,Int32,Byte[],Resolution,PixelFormat,Palette)
    In This Topic
    Initializes a new instance of the ManagedBitmap class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal width
    Image width.
    As System.Int32, _
    ByVal height
    Image height.
    As System.Int32, _
    ByVal stride
    Image data stride.
    As System.Int32, _
    ByVal pixelData
    Image pixel data.
    () As Byte, _
    ByVal resolution
    Image resolution.
    As Resolution, _
    ByVal pixelFormat
    Image pixel format.
    As PixelFormat, _
    ByVal palette
    Image palette.
    As Palette _
    )
    public ManagedBitmap(
    System.Int32 width,
    System.Int32 height,
    System.Int32 stride,
    byte[] pixelData,
    Resolution resolution,
    PixelFormat pixelFormat,
    Palette palette
    )
    public: ManagedBitmap(
    System.Int32 width,
    System.Int32 height,
    System.Int32 stride,
    byte[]* pixelData,
    Resolution resolution,
    PixelFormat pixelFormat,
    Palette* palette
    )
    public:
    ManagedBitmap(
    System.Int32 width,
    System.Int32 height,
    System.Int32 stride,
    array<byte>^ pixelData,
    Resolution resolution,
    PixelFormat pixelFormat,
    Palette^ palette
    )

    Parameters

    width
    Image width.
    height
    Image height.
    stride
    Image data stride.
    pixelData
    Image pixel data.
    resolution
    Image resolution.
    pixelFormat
    Image pixel format.
    palette
    Image palette.
    Exceptions
    ExceptionDescription
    Thrown if pixelData does NOT have enough data for specified bitmap.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also